package com.ruoyi.classes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级对象 t_class
 * 
 * @author Bandit
 * @date 2022-11-01
 */
public class TClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级id */
    private Long id;

    /** 班级码，UUID */
    @Excel(name = "班级码，UUID")
    private String classCode;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String className;

    /** 班级头像url */
    @Excel(name = "班级头像url")
    private String classAvatar;

    /** 类型，普通型0，学习型1 */
    @Excel(name = "类型，普通型0，学习型1")
    private Long type;

    /** 是否被加密，加密1，未加密0 */
    @Excel(name = "是否被加密，加密1，未加密0")
    private Long encrypted;

    /** 加密班级需要密码，可为空 */
    @Excel(name = "加密班级需要密码，可为空")
    private String password;

    /** 被谁创建的, 群主 */
    @Excel(name = "被谁创建的, 群主")
    private Long createdBy;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Long deleteFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassCode(String classCode) 
    {
        this.classCode = classCode;
    }

    public String getClassCode() 
    {
        return classCode;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setClassAvatar(String classAvatar) 
    {
        this.classAvatar = classAvatar;
    }

    public String getClassAvatar() 
    {
        return classAvatar;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setEncrypted(Long encrypted) 
    {
        this.encrypted = encrypted;
    }

    public Long getEncrypted() 
    {
        return encrypted;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classCode", getClassCode())
            .append("className", getClassName())
            .append("classAvatar", getClassAvatar())
            .append("type", getType())
            .append("encrypted", getEncrypted())
            .append("password", getPassword())
            .append("createdBy", getCreatedBy())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
